/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.ub.informatica.disseny.movieaff.modelo;

    
/**
 *
 * @author pablo
 */
public class Actor extends Artista {
    
    private String id;
    private String nom;
    private String tipus;
    private String idMovie;
    private double cache;
    private String nombreArtistico;

    public Actor(String id, String nom, String tipus, String idMovie, double cache,
                 String nombreArtistico) {
        super(id, nom, tipus, idMovie);
        this.id = id;
        this.nom = nom;
        this.tipus = tipus;
        this.idMovie = idMovie;
        this.cache = cache;
        this.nombreArtistico = nombreArtistico;
                
        
    }

    /**
     * @return the id
     */
    public String getId() {
        return id;
    }

    /**
     * @param id the id to set
     */
    public void setId(String id) {
        this.id = id;
    }

    /**
     * @return the nom
     */
    public String getNom() {
        return nom;
    }

    /**
     * @param nom the nom to set
     */
    public void setNom(String nom) {
        this.nom = nom;
    }

    /**
     * @return the tipus
     */
    public String getTipus() {
        return tipus;
    }

    /**
     * @param tipus the tipus to set
     */
    public void setTipus(String tipus) {
        this.tipus = tipus;
    }

    /**
     * @return the idMovie
     */
    public String getIdMovie() {
        return idMovie;
    }

    /**
     * @param idMovie the idMovie to set
     */
    public void setIdMovie(String idMovie) {
        this.idMovie = idMovie;
    }

    /**
     * @return the cache
     */
    public double getCache() {
        return cache;
    }

    /**
     * @param cache the cache to set
     */
    public void setCache(double cache) {
        this.cache = cache;
    }

    /**
     * @return the nombreArtistico
     */
    public String getNombreArtistico() {
        return nombreArtistico;
    }

    /**
     * @param nombreArtistico the nombreArtistico to set
     */
    public void setNombreArtistico(String nombreArtistico) {
        this.nombreArtistico = nombreArtistico;
    }
    
    @Override
    public String toString (){
        return ("\nActor amb ID: " + getId() + "--------------------------------------" +
                "\nNom: " + getNom() + "\nFilm ID: " + getIdMovie() + "\nCache: " + getCache() +
                "\nNom artistic: "+ getNombreArtistico());
    }
    
 }

